package com.topcheer.gateway;

import com.topcheer.gateway.common.properties.BlackListProperties;
import com.topcheer.gateway.filter.BlackListGatewayFilterFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableCircuitBreaker
@EnableEurekaClient
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

    @Bean
    BlackListGatewayFilterFactory blackListGatewayFilterFactory(){
        return new BlackListGatewayFilterFactory();
    }

}
